/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package TempProject;

import java.util.InputMismatchException;
import java.util.Scanner;

/**
 *
 * @author dvanh
 */
public class TempProject {

    Scanner input = new Scanner(System.in);
    int in;

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        TempProject ta = new TempProject();
        ta.input();
    }

    public void input() {
        System.out.println("Skriv in en siffra eller en bokstav: ");
        try {
            in = input.nextInt();
        } catch (InputMismatchException ex) {
            System.out.println("Det här är en bokstav.");
            input.next();
            input();
            return;

        }
        System.out.println("Det här är en siffra.");
        System.out.println("Skit1");
        System.out.println("skit2");
        System.out.println("skit3");
        System.out.println("skit4");
        System.out.println("skit5");
        input();
    }
}